﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true" CodeBehind="Members.aspx.cs" Inherits="SharingCenter.Web.Mod.Groups.Manage.Members" %>
<%@ Register Src="~/Mod/Groups/Manage/ManageNav.ascx" TagName="nav" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
圈子成员管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
    tr.m1 td
    {
    	height:40px;
    	vertical-align:middle;
    	padding-left:.3em;
    	padding-right:.3em;
    }
    
    tr.alt td{border-bottom:none; background:none;}
    
    tr.m1:hover td
    {
    	background: #eee;
    }
    
    .nickname{width:100px;}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<myuc:GroupHeader ID="GroupHeader1" runat="server" GroupIdQueryStringField="id" />
    <myuc:GenericTabs ID="LinkListTabs1" runat="server" Section="Groups" SelectedItem="edit" />
<h2 class="bb">
<span class="nss"></span>
<span class="iconlabel">成员管理</span></h2>
<div class="left wide-c">
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="UserId">
        <LayoutTemplate>
            <table cellpadding="0" cellspacing="0" class="tb-full">
                <tr runat="server" id="itemPlaceholder" />
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr class="m1<%#(Container.DisplayIndex+1) % 2 == 0 ? " at" : "" %>">
                <td class="nickname">
                    <cc:AvatarImage runat="server" UserId='<%#Eval("UserId") %>' AvatarType="Tiny" />
                    <cc:NickNameLink runat="server" UserId='<%#Eval("UserId") %>' />
                    <%--<myuc:ThumbAvatar runat="server" UserId='<%#Eval("UserId") %>' />--%>
                </td>
                <td>
                    <div class="litetext">
                        <asp:Literal runat="server" Text='<%#GetGroupRoleName((int)Eval("AdminRole")) %>'></asp:Literal>
                    </div>
                </td>
                <td>
                    <div class="textfar">
                        <asp:Label runat="server" Visible='<%#Eval("AdminRole").ToString()=="0" %>'>
                            <asp:LinkButton ID="LinkButton2" runat="server" Text="升为管理员" CommandName="AssignAdminRole" CommandArgument="3"></asp:LinkButton>
                        </asp:Label>
                        <asp:Label ID="Label1" runat="server" Visible='<%#Eval("AdminRole").ToString()=="3" %>'>
                            <asp:LinkButton ID="LinkButton3" runat="server" Text="降为普通成员" CommandName="AssignAdminRole" CommandArgument="0"></asp:LinkButton>
                        </asp:Label>
                        <asp:LinkButton ID="LinkButton1" runat="server" Text="请出圈子" CommandName="Remove"></asp:LinkButton>
                        <ajaxctrltool:ConfirmButtonExtender TargetControlID="LinkButton1" ConfirmText="真的要将这位成员请出圈子吗？" runat="server" />
                    </div>
                </td>
            </tr>
        </ItemTemplate>
        <ItemSeparatorTemplate>
            <tr>
                <td colspan="3">
                    <div class="hr1" />
                </td>
            </tr>
        </ItemSeparatorTemplate>
    </asp:ListView>
</div>
<div class="wide-s">
    <uc1:nav runat="server" />
</div>
</asp:Content>
